package o;

import android.text.Layout.Alignment;
import android.text.SpannableStringBuilder;
import com.google.android.exoplayer2.text.Cue;

public final class ako extends Cue {
    public final long ͺ;
    public final long ॱᐝ;

    static /* synthetic */ class AnonymousClass1 {
        static final /* synthetic */ int[] ˏ = new int[Alignment.values().length];

        static {
            try {
                ˏ[Alignment.ALIGN_NORMAL.ordinal()] = 1;
            } catch (NoSuchFieldError e) {
            }
            try {
                ˏ[Alignment.ALIGN_CENTER.ordinal()] = 2;
            } catch (NoSuchFieldError e2) {
            }
            try {
                ˏ[Alignment.ALIGN_OPPOSITE.ordinal()] = 3;
            } catch (NoSuchFieldError e3) {
            }
        }
    }

    public static class a {
        private int ʻ;
        private float ʼ;
        private int ʽ;
        private SpannableStringBuilder ˊ;
        private long ˋ;
        private Alignment ˎ;
        private long ˏ;
        private float ॱ;
        private float ॱॱ;
        private int ᐝ;

        public a() {
            ˊ();
        }

        public void ˊ() {
            this.ˏ = 0;
            this.ˋ = 0;
            this.ˊ = null;
            this.ˎ = null;
            this.ॱ = Float.MIN_VALUE;
            this.ʻ = Integer.MIN_VALUE;
            this.ᐝ = Integer.MIN_VALUE;
            this.ॱॱ = Float.MIN_VALUE;
            this.ʽ = Integer.MIN_VALUE;
            this.ʼ = Float.MIN_VALUE;
        }

        public ako ˏ() {
            if (this.ॱॱ != Float.MIN_VALUE && this.ʽ == Integer.MIN_VALUE) {
                ˎ();
            }
            return new ako(this.ˏ, this.ˋ, this.ˊ, this.ˎ, this.ॱ, this.ʻ, this.ᐝ, this.ॱॱ, this.ʽ, this.ʼ);
        }

        public a ˋ(long j) {
            this.ˏ = j;
            return this;
        }

        public a ˎ(long j) {
            this.ˋ = j;
            return this;
        }

        public a ˋ(SpannableStringBuilder spannableStringBuilder) {
            this.ˊ = spannableStringBuilder;
            return this;
        }

        public a ˎ(Alignment alignment) {
            this.ˎ = alignment;
            return this;
        }

        public a ˋ(float f) {
            this.ॱ = f;
            return this;
        }

        public a ˏ(int i) {
            this.ʻ = i;
            return this;
        }

        public a ˋ(int i) {
            this.ᐝ = i;
            return this;
        }

        public a ॱ(float f) {
            this.ॱॱ = f;
            return this;
        }

        public a ˎ(int i) {
            this.ʽ = i;
            return this;
        }

        public a ˎ(float f) {
            this.ʼ = f;
            return this;
        }

        private a ˎ() {
            if (this.ˎ != null) {
                switch (AnonymousClass1.ˏ[this.ˎ.ordinal()]) {
                    case 1:
                        this.ʽ = 0;
                        break;
                    case 2:
                        this.ʽ = 1;
                        break;
                    case 3:
                        this.ʽ = 2;
                        break;
                    default:
                        amz.ˏ("WebvttCueBuilder", "Unrecognized alignment: " + this.ˎ);
                        this.ʽ = 0;
                        break;
                }
            }
            this.ʽ = Integer.MIN_VALUE;
            return this;
        }
    }

    public ako(CharSequence charSequence) {
        this(0, 0, charSequence);
    }

    public ako(long j, long j2, CharSequence charSequence) {
        this(j, j2, charSequence, null, Float.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE, Float.MIN_VALUE, Integer.MIN_VALUE, Float.MIN_VALUE);
    }

    public ako(long j, long j2, CharSequence charSequence, Alignment alignment, float f, int i, int i2, float f2, int i3, float f3) {
        super(charSequence, alignment, f, i, i2, f2, i3, f3);
        this.ͺ = j;
        this.ॱᐝ = j2;
    }

    public boolean ˋ() {
        return this.ˎ == Float.MIN_VALUE && this.ʼ == Float.MIN_VALUE;
    }
}
